<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Add a Driver</title>
    </h:head>
    <h:body>
        <f:view>
            <h:form>
                <br/>
                <h:panelGrid border="1" columns="2">
                    <f:facet name="header">
                        <h:outputText value="Enter your information"/>
                    </f:facet>
                    <h:outputText value="Driver Name"/>
                    <h:inputText id="Name" value="#{driver.name}" required="true"/>
                    <h:outputText value="Driver E-Mail"/>
                    <h:inputText id="Email" value="#{driver.email}" required="true"/>
                    <h:outputText value="Driver Phone Number"/>
                    <h:inputText id="PhoneNumber" value="#{driver.phoneNumber}" required="true"/>
                </h:panelGrid>
                <br/>
                <h:commandButton value="Access" action="#{driver.addDriver}"/>
            </h:form>
        </f:view>
    </h:body>
</html>

